package com.cj.cms.service.test;

import java.util.HashMap;
import java.util.Map;

public class Domain {
	public String code;
	public Map<Object,Object> properties;
	
	public Domain(){}
	public Domain(String code,HashMap<Object,Object> properties){
		
	}
	
	public void addProperty(Object key,Object value){
		if(properties == null){
			synchronized(this){
				if(properties == null)
					properties = new HashMap<Object,Object>();
			}
		}
		properties.put(key, value);
	}
	
	public Object getProperty(Object key){
		return properties.get(key);
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Map<Object, Object> getProperties() {
		return properties;
	}
	public void setProperties(Map<Object, Object> properties) {
		this.properties = properties;
	}
	
}
